package com.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogController {

    private static final Logger logger = LoggerFactory.getLogger(LogController.class);

    @RequestMapping("/log")
    public String log(){
        logger.debug("debug 日志打印");
        logger.info("info 日志打印");
        logger.warn("warning 日志打印");
        logger.error("error 日志打印");
        return "输出日志";
    }
}
